package edu.sctu.zhuyingzhi.month201506.day20150613.Timer;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by Administrator on 2015/6/13.
 */
public class Date1 {
    public Date getDate() throws ParseException {
        Date date = new Date();
        Long x = Calendar.getInstance().getTimeInMillis() + 9000L;
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s= format.format(x);
        date = format.parse(s);
        return date;
    }
}
